<?php
/**
 * Created by PhpStorm.
 * User: HeiYanHeiMao
 * Date: 2020/2/27
 * Time: 17:30
 */

namespace app\controller;


use app\BaseController;
use app\middleware\Check;
use app\model\CategoryModel;
use app\Request;

/**商品分类管理
 * Class Category
 * @package app\controller
 */
class Category extends BaseController
{
    protected $middleware = [Check::class];

    /**商户获取商品分类列表
     * @param Request $request
     * @return \think\response\Json
     */
    public function storeGetList(Request $request)
    {
        if (!$request->isPost()) return jsonFail('非法请求方式');
        // 逻辑处理
        return CategoryModel::storeGetList();
    }
}